package com.jeeplus.modules.sys.entity;

import com.jeeplus.core.persistence.TreeEntity;
/**
 * @author Administrator
 * @title: SysParameter
 * @projectName JeePlus
 * @description: TODO
 * @date 2019/10/2514:11
 */
public class SysParameter extends TreeEntity<SysParameter> {
    private static final long serialVersionUID = 1L;


    public SysParameter() {
        super();
    }

    public SysParameter(String id) {
        super(id);
    }

    public SysParameter getParent() {
        return parent;
    }

    @Override
    public void setParent(SysParameter parent) {
        this.parent = parent;

    }

    public String getParentId() {
        return parent != null && parent.getId() != null ? parent.getId() : "0";
    }
}
